home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor2
/
mkromx.dir
< prev
next >
Wrap
File List
|
1993-02-18
|
3KB
|
198 lines
%%HP: T(3)A(D)F(.);
DIR
MkROM
"(MkROM)
LIBRARY 702
xEXTERNAL b
xEXTERNAL p
xEXTERNAL n
EXTERNAL ParseHxs
INCLUDE DEFS
xCONFIG
INCLUDE Config
NIBB 1 1
xNAME b
INCLUDE PBint
NIBB 1 1
xNAME p
INCLUDE PPtr
NIBB 1 1
xNAME n
INCLUDE PName
NULLNAME ParseHxs
INCLUDE PHxs
ENDLIB"
Config
"(Config)
:: DOBINT xxROMID
TOSRRP
;"
PBint
"(PBint)
:: CK0
;
(Macro Parser)
::
CODE
LC(3) NOP8MASK20
GOVLNG SetISysFlag
ENDCODE
COLA ParseHxs
;"
PPtr
"(PPtr)
:: CK0
;
(Macro Parser)
::
CODE
LC(3) NOP8MASK20
GOVLNG ClrISysFlag
ENDCODE
COLA ParseHxs
;"
PName
"(PName)
:: CK0
;
(Macro Parser)
::
nultrior failed
DUP
' ROMPTR 4D2 D (E\<-\->A)
ROMPTR@ NOTcasedrop failed
ERRSET
EvalNoCK
ERRTRAP
:: RDROP DROP
failed
;
CODE
C=DAT1 A ->hxs
CD0EX
D0=D0+ 10 ->body
A=DAT0 A val
D0=C
DAT1=A A ovwr hxs with val
LOOP
ENDCODE
apndit
DROP GetNextToken
TrueTrue
;"
PHxs
"(PHxs)
::
BitstreamTTT swapoutTTT
nultrior failed
DUP
CODE
GOSBVL =SAVPTR
D0=(5) SysNib20
C=ST
C=DAT0 1
ST=C
C=DAT1 A
D0=C ->$
D0=D0+ 5 ->len
A=DAT0 A len
A=A-CON A,5 len(n)
LC(5) 10
?A>C A len($) > 5 ?
GOYES snInv$
D0=D0+ 5 ->body
D1=A cnt
D1=D1- 2 --cnt
A=0 A
LC(2) #30
D=C B '0'
GONC snEntry BET
snInv$
GOVLNG GPPushFalse
snLoop
ASL A #<<4
D0=D0+ 2 ->nxt
snEntry
C=DAT0 B chr
C=C-D B chr-'0'
GOC snInv$ < '0'
B=C B chr-'0'
LC(2) 10
?B<C B
GOYES snNoSub <= 9
LC(1) 7
B=B-C B chr-'7'
LC(1) #A
?B<C B
GOYES snInv$ < A
LC(1) #F
?B>C B
GOYES snInv$ > F
snNoSub
A=A!B B
D1=D1- 2
GONC snLoop
GOSBVL =GETPTR
?ST=1 fBint
GOYES DrpPsh#
DAT1=A A Ovwr $
GONC PshTLp BET
DrpPsh#
R0=A For PUSH#
GOSBVL =PopSavptr Drop $, RPL ptr in RAM
GOSBVL =PUSH#
PshTLp
GOVLNG =PushTLoop
ENDCODE
NOTcasedrop failed
apndit
PalTTT swapinTTT
TrueTrue
;"
DEFS
"ASSEMBLE
xxROMID EQU #702
BitstreamTTT EQU #25E44
GPPushFalse EQU #370A
PalTTT EQU #25D3A
apndit EQU #251EC
swapinTTT EQU #25AB6
swapoutTTT EQU #25AD4
SetISysFlag EQU #539F9
ClrISysFlag EQU #539F1
SysNib20 EQU #70696
NOP8MASK20 EQU #896
fBint EQU 3
RPL"
END